// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 用户名密码登录
export const userLogin = (data) => {
    return service({
        url: '/user/user/login',
        method: 'post',
        data
    })
};

// 发送手机验证码
export const sendSms = (data) => {
    return service({
        url: '/user/user/sendSms',
        method: 'post',
        data
    })
};

// 手机验证码登录
export const smsLogin = (data) => {
    return service({
        url: '/user/user/smsLogin',
        method: 'post',
        data
    })
};
